<?php

namespace liketp\route\dispatch;

use liketp\route\Dispatch;

class Callback extends Dispatch
{
    public function exec()
    {
        $data = app()->invokeFunction($this->dispatch, $this->params);
        return $this->response($data);
    }
}
